package cn.topcodes.tcsf.cms.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;

import javax.persistence.Table;

/**
 * AlbumPicture
 *
 * @author Yvan
 * @date 2018-02-09 10:46:26
 */
@Data
@Table(name = "t_cms_album_picture")
public class AlbumPicture extends IdEntity {

    public static final String FIELD_ALBUMID = "albumId";

    public static final String FIELD_URL = "url";

    public static final String FIELD_SORT = "sort";

    public static final String FIELD_NAME = "name";

    public static final String FIELD_TYPE = "type";

    public static final String FIELD_DESCRIPTION = "description";

    public static final String FILE_PATH = "album/";

    /**
     * 图册ID
     */
    private Long albumId;

    /**
     * 图片地址
     */
    private String url;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 描述
     */
    private String description;
}